﻿<?php include("template/baglanti.php"); include ("template/upload.php"); include("template/header.php"); ?>   
<link rel="stylesheet" type="text/css" href="css/main.css" />

<div class="clear"> </div>

<div class="wrapper">

<div class="menu radius flt">
<?php include("./template/menu.php") ?>
 </div>

<div class="wrapperInside radius flt"> 

<div class="wrapperInsideCapture"> Anatolia Products Category</div>

<a href="categori.php">
<div class="wrapperInsideIcon flt"><div class="wrapperInsideIconImg flt"><img src="images/label.png" > </div> <div class="wrapperInsideIconText flt">
<h1> Add New Category</h1>
You can add new category </div> </div>
</a>

<a href="categoriList.php">
<div class="wrapperInsideIcon flt"><div class="wrapperInsideIconImg flt"><img src="images/labellist.png" > </div> <div class="wrapperInsideIconText flt">
<h1> Category List</h1>
You can edit category and delete. </div> </div>
</a>

</div>
</div>







<?php include("template/footer.php") ?>

<?php 

function upload_pic($file)
{
	$upload = new upload($file);
	$new_name = substr(md5(time()),0,6).substr(md5(rand(0,100000)),0,6);
	#big
	$upload->file_new_name_body     = $new_name;
	$upload->process('../upload/images/');
	if($upload->processed){
		$upload->clean();
		return $new_name.'.jpg';
	}
	return 'Hata:'.$upload->error;
}
?>
